\section{commands/find.c File Reference}
\label{find_8c}\index{commands/find.c@{commands/find.c}}
{\ttfamily \#include $<$sys/types.h$>$}\par
{\ttfamily \#include $<$sys/stat.h$>$}\par
{\ttfamily \#include $<$unistd.h$>$}\par
{\ttfamily \#include $<$dirent.h$>$}\par
{\ttfamily \#include $<$regex.h$>$}\par
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$ftw.h$>$}\par
{\ttfamily \#include $<$getopt.h$>$}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define {\bf ERR\_\-DIR\_\-NOT\_\-OPEN}~\char`\"{}Directory could not be opened.\char`\"{}
\item 
\#define {\bf ERR\_\-DIR\_\-STAT\_\-FAILED}~\char`\"{}Stat could not be read.\char`\"{}
\item 
\#define {\bf ERR\_\-DIR\_\-CH\_\-FAILED}~\char`\"{}Directory could not be changed.\char`\"{}
\item 
\#define {\bf MAX\_\-OPTIONS}~20
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf find} (char $\ast$)
\item 
int {\bf list} (const char $\ast$, const struct stat $\ast$, int)
\item 
int {\bf main} (int argc, char $\ast$$\ast$argv)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
char $\ast$$\ast$ {\bf options\_\-array} = NULL
\item 
char $\ast$$\ast$ {\bf argument\_\-array} = NULL
\item 
int {\bf opt\_\-arg\_\-array\_\-index} = 0
\end{DoxyCompactItemize}


\subsection{Define Documentation}
\index{find.c@{find.c}!ERR\_\-DIR\_\-CH\_\-FAILED@{ERR\_\-DIR\_\-CH\_\-FAILED}}
\index{ERR\_\-DIR\_\-CH\_\-FAILED@{ERR\_\-DIR\_\-CH\_\-FAILED}!find.c@{find.c}}
\subsubsection[{ERR\_\-DIR\_\-CH\_\-FAILED}]{\setlength{\rightskip}{0pt plus 5cm}\#define ERR\_\-DIR\_\-CH\_\-FAILED~\char`\"{}Directory could not be changed.\char`\"{}}\label{find_8c_a7b5ab6fa34997701de7e7226baa1aa4f}


Definition at line 21 of file find.c.

\index{find.c@{find.c}!ERR\_\-DIR\_\-NOT\_\-OPEN@{ERR\_\-DIR\_\-NOT\_\-OPEN}}
\index{ERR\_\-DIR\_\-NOT\_\-OPEN@{ERR\_\-DIR\_\-NOT\_\-OPEN}!find.c@{find.c}}
\subsubsection[{ERR\_\-DIR\_\-NOT\_\-OPEN}]{\setlength{\rightskip}{0pt plus 5cm}\#define ERR\_\-DIR\_\-NOT\_\-OPEN~\char`\"{}Directory could not be opened.\char`\"{}}\label{find_8c_a8627a6b2a357c1ed5e0bcf13fd11a6d8}


Definition at line 19 of file find.c.

\index{find.c@{find.c}!ERR\_\-DIR\_\-STAT\_\-FAILED@{ERR\_\-DIR\_\-STAT\_\-FAILED}}
\index{ERR\_\-DIR\_\-STAT\_\-FAILED@{ERR\_\-DIR\_\-STAT\_\-FAILED}!find.c@{find.c}}
\subsubsection[{ERR\_\-DIR\_\-STAT\_\-FAILED}]{\setlength{\rightskip}{0pt plus 5cm}\#define ERR\_\-DIR\_\-STAT\_\-FAILED~\char`\"{}Stat could not be read.\char`\"{}}\label{find_8c_a3f9cf44f4c1f17cacc23877392cfe267}


Definition at line 20 of file find.c.

\index{find.c@{find.c}!MAX\_\-OPTIONS@{MAX\_\-OPTIONS}}
\index{MAX\_\-OPTIONS@{MAX\_\-OPTIONS}!find.c@{find.c}}
\subsubsection[{MAX\_\-OPTIONS}]{\setlength{\rightskip}{0pt plus 5cm}\#define MAX\_\-OPTIONS~20}\label{find_8c_a7433aa656288775b4d203ec4ed5865fa}


Definition at line 23 of file find.c.



\subsection{Function Documentation}
\index{find.c@{find.c}!find@{find}}
\index{find@{find}!find.c@{find.c}}
\subsubsection[{find}]{\setlength{\rightskip}{0pt plus 5cm}void find (char $\ast$ {\em path})}\label{find_8c_a0558dd3968c3b34d83f9b71386b820c3}


Definition at line 209 of file find.c.

\index{find.c@{find.c}!list@{list}}
\index{list@{list}!find.c@{find.c}}
\subsubsection[{list}]{\setlength{\rightskip}{0pt plus 5cm}int list (const char $\ast$ {\em name}, \/  const struct stat $\ast$ {\em status}, \/  int {\em type})}\label{find_8c_a8a9d45da6761b61c8bfaccdd02d3de74}


AMIN -\/ accessed minutes ago

TYPE (file, directory, link) 



Definition at line 146 of file find.c.

\index{find.c@{find.c}!main@{main}}
\index{main@{main}!find.c@{find.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, \/  char $\ast$$\ast$ {\em argv})}\label{find_8c_a3c04138a5bfe5d72780bb7e82a18e627}


AMIN

TYPE 



Definition at line 41 of file find.c.



\subsection{Variable Documentation}
\index{find.c@{find.c}!argument\_\-array@{argument\_\-array}}
\index{argument\_\-array@{argument\_\-array}!find.c@{find.c}}
\subsubsection[{argument\_\-array}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$$\ast$ {\bf argument\_\-array} = NULL}\label{find_8c_a6ae1ac1cb9e02803954fe57a39755a53}


Definition at line 37 of file find.c.

\index{find.c@{find.c}!opt\_\-arg\_\-array\_\-index@{opt\_\-arg\_\-array\_\-index}}
\index{opt\_\-arg\_\-array\_\-index@{opt\_\-arg\_\-array\_\-index}!find.c@{find.c}}
\subsubsection[{opt\_\-arg\_\-array\_\-index}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf opt\_\-arg\_\-array\_\-index} = 0}\label{find_8c_a29ff3aa134fd092a6be4a6efc20a5e0e}


Definition at line 38 of file find.c.

\index{find.c@{find.c}!options\_\-array@{options\_\-array}}
\index{options\_\-array@{options\_\-array}!find.c@{find.c}}
\subsubsection[{options\_\-array}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$$\ast$ {\bf options\_\-array} = NULL}\label{find_8c_a64571c81aa84709fbc4f144d39940ad5}


Definition at line 36 of file find.c.

